package kgc.crm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
    * 跟进记录
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "kgc_crm_admin_record")
public class AdminRecord {
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 关联类型
     */
    @TableField(value = "types")
    private String types;

    /**
     * 类型ID
     */
    @TableField(value = "types_id")
    private Integer typesId;

    /**
     * 跟进内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 跟进类型
     */
    @TableField(value = "category")
    private String category;

    /**
     * 下次联系时间
     */
    @TableField(value = "next_time")
    private Date nextTime;

    /**
     * 商机ID
     */
    @TableField(value = "business_ids")
    private String businessIds;

    /**
     * 联系人ID
     */
    @TableField(value = "contacts_ids")
    private String contactsIds;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 创建人ID
     */
    @TableField(value = "create_user_id")
    private Long createUserId;

    /**
     * 批次 比如附件批次
     */
    @TableField(value = "batch_id")
    private String batchId;

    public static final String COL_RECORD_ID = "record_id";

    public static final String COL_TYPES = "types";

    public static final String COL_TYPES_ID = "types_id";

    public static final String COL_CONTENT = "content";

    public static final String COL_CATEGORY = "category";

    public static final String COL_NEXT_TIME = "next_time";

    public static final String COL_BUSINESS_IDS = "business_ids";

    public static final String COL_CONTACTS_IDS = "contacts_ids";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_BATCH_ID = "batch_id";
}